import javax.servlet.http.HttpServlet;

import org.hibernate.Session;
import org.hibernate.Transaction;

public class StartUp extends HttpServlet
{

	private Session				session;
	private static final long	serialVersionUID	= -8881190301700584453L;
	public static int			last_pos_x			= 0;
	public static int			last_pos_y			= 0;

	public void init()
	{
		setSession(HibernateUtil.currentSession());
		// Statics.initDb(getSession(), getServletContext());
		// Calculate.init(getSession());
		Transaction transaction = getSession().beginTransaction();

		transaction.commit();
	}

	public Session getSession()
	{
		return session;
	}

	public void setSession(Session session)
	{
		this.session = session;
	}
}
